/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.base.entity.card;

import com.thinkgem.jeesite.modules.base.entity.reader.BaseReader;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 基础管理_借阅证信息生成Entity
 * @author 呆子
 * @version 2020-02-22
 */
public class BaseCard extends DataEntity<BaseCard> {
	
	private static final long serialVersionUID = 1L;
	private BaseReader baseReader;  //学生信息
    private String cardId;		// 借书证号
	private String cardStuId;		// 学号
	private Integer cardBorNum;		// 可借阅数
	private Integer cardBoredNum;		// 已借阅数
	
	public BaseCard() {
		super();
	}

	public BaseCard(String id){
		super(id);
	}

    public BaseReader getBaseReader() {
        return baseReader;
    }

    public void setBaseReader(BaseReader baseReader) {
        this.baseReader = baseReader;
    }

	@Length(min=1, max=20, message="借书证号长度必须介于 1 和 20 之间")
	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId;
	}
	
	@Length(min=1, max=20, message="学号长度必须介于 1 和 20 之间")
	public String getCardStuId() {
		return cardStuId;
	}

	public void setCardStuId(String cardStuId) {
		this.cardStuId = cardStuId;
	}


    public Integer getCardBorNum() {
        return cardBorNum;
    }

    public void setCardBorNum(Integer cardBorNum) {
        this.cardBorNum = cardBorNum;
    }
	
    public Integer getCardBoredNum() {
        return cardBoredNum;
    }

    public void setCardBoredNum(Integer cardBoredNum) {
        this.cardBoredNum = cardBoredNum;
    }
}